package com.xfcy.blog.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xfcy.blog.common.constant.DateConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * 友情链接表(FriendLink)表实体类
 *
 * @author 晓风残月Lx
 * @since 2023-04-09 11:03:05
 */
@TableName("b_friend_link")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FriendLink implements Serializable {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //网站名称
    private String name;
    //网站地址
    private String url;
    //网站头像地址
    private String avatar;
    //网站描述
    private String info;
    //邮箱
    private String email;
    //下架原因
    private String reason;
    //排序
    private Integer sort;
    //ENUM-状态:"0-下架","1-审核" 2-通过
    private Integer status;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime createTime;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = DateConstant.FORMAT_STRING, timezone = DateConstant.GMT_TIMEZONE)
    private LocalDateTime updateTime;

}

